package top.fzqblog.function


/**
 * Created by 抽离 on 2017/8/3 0003.
 */


fun hasZeros(ints: List<Int>): Boolean {
    ints.forEach {
        if (it == 0) return true // returns from hasZeros
    }
    return false
}

fun main(args: Array<String>) {
    System.out.println("是否等于0：" + hasZeros(asList(1, 2, 3)))
}